package com.bwie.controller;

import com.bwie.pojo.Orders;
import com.bwie.service.OrdersService;
import com.bwie.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Yoo19
 * @description :
 * @createDate : 2025/7/11 15:05 05
 */
@RestController
@RequestMapping("/item/order")
public class OrderController {
    @Autowired
    private OrdersService ordersService;


    @ApiOperation("预约订单")
    @PostMapping("/subscribeOrder")
    public R subscribeOrder(@RequestBody Orders orders){
        return ordersService.subscribeOrder(orders);
    }
}
